#pragma once
#include <cstdlib>
#include <cstdio>

#define ERR_EXIT(m)         \
    do{                     \
        perror(m);          \
        exit(EXIT_FAILURE); \
    } while (0)